<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登陆页面</title>
<script type="text/javascript">
function check()
{
		if(document.form1.username.value=="")
		{
			alert("账号不能为空！");
			document.form1.username.focus();
			return;
		}
		else if(document.form1.password.value=="")
		{
			alert("密码不能为空！");
			document.form1.password.focus();
			return;
		}
		else
		{
		 form1.submit();
		}		
} 
</script>
<style>
body,html{height:100%;padding:0;margin:0;}
.divbg {
	position:absolute;
	top:50%;
	bottom: 50%;
	width:100%;
	height:300px;
	border:1px solid red;
	}
.ziti {
	color: #0a84e1;
	font-size: 12px;
	font-weight:bold;
}
.inputbg5 {
border-top:1px solid #c1d1d7; background:url(images/26.gif); border-left: 1px solid #c1d1d7; border-bottom: 1px solid #c1d1d7; border-right: 1px solid #c1d1d7;color:#0a84e1; height: 22px;  line-height: 22px; width: 150px;}
.submitbg5 {
width:83px; height:23px; color:#0a84e1; background:url(images/23.gif); cursor: pointer; font-weight:bold; border: 0;}
</style>
</head>
<body>
<form name="form1" method="post" action="chklogin.jsp" id="form1">
<table width="100%" height="100%" border="0"align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align:center;">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FF0000">
  <tr>
    <td><table width="100%" height="105" border="0" align="center" cellpadding="0" cellspacing="0"  >
      <tr>
        <td align="center" valign="middle"><table width="638" height="205" border="0" cellpadding="0" cellspacing="0" background="images/31.gif">
          <tr>
            <td width="338" align="center" valign="bottom"><table width="333" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="82" height="30">&nbsp;</td>
                <td width="251" height="30"><label></label></td>
              </tr>
              <tr>
                <td height="30">&nbsp;</td>
                <td height="30"><label></label></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><table width="638" height="106" border="0" align="center" cellpadding="0" cellspacing="0" background="images/32.gif">
            <tr>
              <td align="center" valign="middle">	  
			  <table width="580" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="60" height="30"><div align="center" class="ziti">
                    <div align="right">账&nbsp;&nbsp;号：</div>
                  </div></td>
                  <td width="182" height="30">
                    <div align="left">
					  <input name="username" type="text" id="username" size="25" class="inputbg5" />
                      </div>
                 </td>
                  <td width="58"><div align="center" class="ziti">
                    <div align="right">密&nbsp;&nbsp;码：</div>
                  </div></td>
                  <td width="215"><input name="password" type="Password" id="passsword" class="inputbg5" size="25" /></td>
                  <td width="85"><input type="button" name="btnlogin" value=" 登 陆 " onclick="check();" id="btnlogin" class="submitbg5" /></td>
                </tr>
              </table>
			  </td>
            </tr>
          </table></td>
        </tr>
      </table>      <p>&nbsp;</p></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>  
</table>
</td>
</tr>
</table>	
</form>

</body>
</html>
